package com.itheima.consumer.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Slf4j
@Component
public class SpringLitenerMQ2Obj {

    @RabbitListener(queues = "obj.queue")
    public void listener2Queue(Map msg) {
        System.out.println("接受了消息: " + msg);
    }
}
